﻿@model KMF.Common.ViewSubCategoryTempJoinDto
<tr class="@string.Format("sct-{0}", Model.Id) tsc-template-item" style="display: none;">
    <td>
        @Model.Id
    </td>
    <td>
        @Model.CateTempDescription
    </td>
    <td>
        @Model.Description
    </td>
    <td>
        @Model.DisplayOrder
    </td>
    <td>
        @Ajax.ActionLink("EditSubCateTemp", "EditSubCateTemplate", new { id = Model.Id, categoryId = (string)ViewBag.CategoryId }, new AjaxOptions
                        {
                            OnBegin = "ShowLoading",
                            OnComplete = "HideLoading",
                            OnSuccess = "AjaxReturnDataLoadEditSubCateTemplate"
                        }, new { @class = "icon-edit-v2 fl-l bootstrapTangoSmall", title = "chỉnh sửa" })

        @Ajax.ActionLink("Xóa", "DeleteSubCateTemplate", "AdminProductCategory", new { id = Model.Id }, new AjaxOptions
                        {
                            Confirm = "Bạn chắc chắn muốn xóa template con này!",
                            OnSuccess = "AjaxReturnDataDeleteSubCateTemplate"
                        }, new { @class = "icon-delete fl-l bootstrapTangoSmall", title = "xóa" })

    </td>
</tr>